package com.qhnu.zxjx.enums;

/**
 * @description: 系统编码枚举
 * @author: panpei
 * @date: 2019/11/13 13:38
 * @version: 1.0
 **/
public enum SystemCodeEnum implements ICodeConfig {
	SUCCESS(200, "success"),
	ERROR_SERVER(50000, "server error"),
	ERROR_VALIDATOR_PARAMETER(40000, "error validator parameter"),
	ERROR_REQUEST_URL(40001, "error request url"),
	ERROR_METHOD_NOT_SUPPORTED(40002, "method not supported"),
	ERROR_AUTHORIZED(50001, "no authorized"),
	ERROR_PASSWORD(60001, "error password"),
	ERROR_ACCOUNT_EXIST(60002, "error: account already exists");

	private int code;

	private String message;

	private SystemCodeEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMessage() {
		return message;
	}
}
